const {selectOne} = require('../util/db-util')

async function getImage(id) {
    let arr = await selectOne('image', 'id', id),
        image = {
            create_time:arr[0].create_time,
            thumb_path:arr[0].thumb_path,
            path:arr[0].path,
            id:arr[0].id
        }

    return image
}

module.exports = getImage